package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.StudentBean;

import java.time.LocalDate;
import java.util.List;

public interface IStudentService {
    public void add(StudentBean student);
    public void del(Integer id);
    public void update(Integer id,String phone);
    public List<StudentBean> findAll();
    public StudentBean findById(Integer id);
    public List<StudentBean> findByName(String name);
    public List<StudentBean> findByBirthday(LocalDate startDate,
                                            LocalDate endDate);

    public IPage<StudentBean> cutAll(Integer pageNO);
    public IPage<StudentBean> cutByItem(Integer pageNO,String name,
        LocalDate startDate,LocalDate endDate);

}
